CREATE TABLE [dbo].[wfStepInstances](
	[StepInstanceID] [uniqueidentifier] NOT NULL,
	[ProcessInstanceID] [uniqueidentifier] NOT NULL,
	[StepID] [uniqueidentifier] NOT NULL,
	[ActionTypeID] [uniqueidentifier] NULL,
	[PreviousStepInstanceID] [uniqueidentifier] NULL,
	[CreationDate] [datetime] NOT NULL,
	[CompletionDate] [datetime] NULL,
	[UserID] [uniqueidentifier] NULL,
	[Comments] [nvarchar](max) NULL,
 CONSTRAINT [PK_wfStepInstances] PRIMARY KEY CLUSTERED 
(
	[StepInstanceID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]








